package dao.mapper;
import java.sql.SQLException;
import java.util.List;

import entity.TypetbEntity;
/**
 *@author JiangFan
 */
public interface TypetbDAOI {
    /**
     * @param type_id 根据传入类型查询类型列表是否存在该类型
     * @return
     */
    TypetbEntity selectTypeOne (String type_id) throws SQLException, ClassNotFoundException;

    /**
     * @return 查询所有类型列表信息
     */
    List<TypetbEntity> selectTypeAll ()
            throws ClassNotFoundException, SQLException, InstantiationException, IllegalAccessException;

    /**
     * @param te 在类型列表添加新类型
     * @return
     */
    int insertType (TypetbEntity te) throws SQLException, ClassNotFoundException;

    /**
     * @param fatype_name 根据父类类型查询父类编号
     * @return
     */
    TypetbEntity selectFaTypeOneByName (String fatype_name) throws SQLException, ClassNotFoundException;

    /** 查询所有父类
     * @return
     */
    List<TypetbEntity> selectFaTyAll() throws SQLException, ClassNotFoundException;
}